package com.neuedu.proapi.controller;

import com.neuedu.proapi.service.ToptenUniversitiesMajorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin(origins = "*")
@RestController
public class ToptenUniversitiesMajorsController {
    @Autowired
    private ToptenUniversitiesMajorsService toptenUniversitiesMajorsService;
    @GetMapping("/queryAllToptenUniversitiesMajors")
    public Object queryAllToptenUniversitiesMajors(){
        return toptenUniversitiesMajorsService.queryAllToptenUniversitiesMajors();
    }
}
